package com.luoying.itew.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

public class DateFormatUtils {
    static final String PATTERN = "yyyyMMddHHmmss";
    static final SimpleDateFormat SDF = new  SimpleDateFormat(PATTERN,Locale.CHINESE);

    public static String format(final Date date) {
        synchronized (SDF){
            SDF.setTimeZone(TimeZone.getDefault());
            return SDF.format(date);
        }
    }

}
